package com.pandora.interfacecore.adapter;

import com.pandora.common.aop.BusiBeanAOPBaseClass;
import com.pandora.common.exception.EduException;
import com.pandora.interfacecore.business.DemoBusiness;
import com.pandora.interfacecore.vo.DemoVO;

/**
 * Adapter：Demo
 * 
 * @author JingChenglong 2018/01/04 21:38
 *
 */
public class DemoAdapter {

	/**
	 * 根据名称获取对象信息
	 * 
	 * @param vo
	 * @return
	 */
	public static DemoVO getDemoVOByName(DemoVO vo) throws EduException {
		BusiBeanAOPBaseClass aop = BusiBeanAOPBaseClass.getInstance();
		DemoBusiness obj = (DemoBusiness) aop.bind(DemoBusiness.class);
		return obj.doBusiness(vo);
	}
}